//
//  MAPYSettingHeadView.swift
//  Mars Proxy
//
//  Created by PowerfullClean on 2023/10/16.
//

import UIKit

class MAPYSettingHeadView: UICollectionReusableView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(mapy_titleView)
        addSubview(mapy_iconView)
        mapy_iconView.snp.makeConstraints { make in
            make.size.equalTo(76)
            make.left.equalToSuperview().offset(48)
            make.top.equalToSuperview().offset(72)
        }
        mapy_titleView.snp.makeConstraints { make in
            make.centerX.equalTo(mapy_iconView.snp.centerX)
            make.size.equalTo(CGSize(width: 134, height: 24))
            make.top.equalTo(mapy_iconView.snp.bottom).offset(16)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //MARK: - mapy lazy
    lazy var mapy_iconView: UIImageView = {
        let mapy_iconView = UIImageView(image: UIImage(named: "mapy_setting_icon"))
        mapy_iconView.layer.cornerRadius = 12
        mapy_iconView.layer.masksToBounds = true
        return mapy_iconView
    }()
    lazy var mapy_titleView: UIImageView = {
        let mapy_titleView = UIImageView(image: UIImage(named: "mapy_launch_title"))
        return mapy_titleView
    }()
}
